import com.google.common.collect.Lists;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * Created by yan_li on 2016/10/26.
 */
public class Test {

    private static final String  saveFilePath ="E:\\bak";

    public static void main(String[] args) throws IOException {
        Integer a = 1;
        Integer b = 1;
        Integer c = 2;
        Integer d = 3;
        Integer e = new Integer(3);
        Integer e1 = new Integer(3);
        Long f = 3L;
        Long f1 = new Long(3);

        Integer h = 321;
        Integer g= 321;

        int a1 = 1;
        int b1 = 1;
        int c1 = 2;
        int d1 = 3;

        System.out.println("1== Integer(1) ?:"  + (new Integer(1) == 1));
        System.out.println("a==a1 ?:" + (a==a1));
        System.out.println("a==b ?:" + (a==b));
        System.out.println("d==e ?:" + (d==e));
        System.out.println("e1==e ?:" + (e1==e));
        System.out.println("a + c == d ?:" + (a + c == d));
        System.out.println("a + c == e ?:" + (a + c == e));
        System.out.println("a + c == f ?:" + (a + c == f));
        System.out.println("a1 + c1== f ?:" + (a1 + c1 == f));
        System.out.println("a1 + c1== f1 ?:" + (a1 + c1 == f1));
        System.out.println("a + c equals f ?:" + f.equals(a+c));
        System.out.println("h==g?:" + (h==g));
        System.out.println("a equals b?:" + (a.equals(b)));
    }
    public static void handle(File f) throws IOException {
        String path = saveFilePath+"\\"+f.getName();
        List<String> list = FileUtils.readLines(new File("E:\\cellular_component\\" + f.getName()));
        List<String> result = Lists.newArrayList();
        for(String src:list){
            String[] split = src.split(";");
            for(String in:split){
                result.add(in);
            }
        }
        FileUtils.writeLines(new File(path),result);
        System.out.println(f.getName()+" done");
    }
}
